import request from '@/utils/request'

// 创建系统操作引导
export function createOperateGuide(data) {
  return request({
    url: '/system/operate-guide/create',
    method: 'post',
    data: data
  })
}

// 更新系统操作引导
export function updateOperateGuide(data) {
  return request({
    url: '/system/operate-guide/update',
    method: 'put',
    data: data
  })
}

// 删除系统操作引导
export function deleteOperateGuide(id) {
  return request({
    url: '/system/operate-guide/delete?id=' + id,
    method: 'delete'
  })
}

// 获得系统操作引导
export function getOperateGuide(id) {
  return request({
    url: '/system/operate-guide/get?id=' + id,
    method: 'get'
  })
}

// 获得系统操作引导分页
export function getOperateGuidePage(params) {
  return request({
    url: '/system/operate-guide/page',
    method: 'get',
    params
  })
}
export function getListPicByTypeAndModule(params) {
  return request({
    url: '/system/operate-guide/listPicByTypeAndModule',
    method: 'get',
    params
  })
}

// 导出系统操作引导 Excel
export function exportOperateGuideExcel(params) {
  return request({
    url: '/system/operate-guide/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
